package com.ddpt.platform.common.enums;

public enum NoticeTypeEnum {

    SYSTEM_NOTICE(0,"系统通知"),
    QW_NOTICE(1,"企微群通知"),
    ALL(2,"所有通知");

    private Integer code;

    private String msg;

    NoticeTypeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getMsg(Integer code){
        NoticeTypeEnum[] values = NoticeTypeEnum.values();
        for (NoticeTypeEnum value : values) {
            if(value.getCode() == code){
                return value.getMsg();
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }



}
